package yanc.app

import grails.transaction.Transactional

@Transactional
class FeedbackService {

    def boolean sa(Feedback feedback) {
        def flag = true
        feedback.createDate = new Date()
        feedback.save()
        if (!feedback.save()) {
            feedback.errors.allErrors.each {
                println it
                flag = false
            }
        }
        return flag
    }
}
